<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <div id="demo">
        
        <h1>学校名称: {{name}}</h1>
        <h1>学校地址: {{address}}</h1>
        <hr>
        <h1>姓名: {{person.name}}</h1>
        <h1>年龄: {{person.age}}</h1>
        <hr>
        <h1>姓名(大写): {{person.name.toUpperCase()}}</h1>
        <h1>年龄(大一岁): {{person.age + 1}}</h1>
        <h1>{{person.age > 18 ? '成年' : '未成年'}}</h1>
        <h1>{{100}}</h1>
        <h1>{{100 + 1}}</h1>
        <h1>'100' + 1</h1>

    </div>
    <script>
        Vue.config.productionTip = false;
        new Vue({
            el: '#demo',
            data: {
                name: '尚硅谷',
                address: '宏福科技园',
                person: {
                    name: 'jerry',
                    age: 13
                }
            }
        })
    </script>
</body>
</html>